<?php

namespace app\admin\validate;

use think\Validate;

class Category extends Validate
{
    //表单验证规则
    protected $rule = [
        'cate_name'  =>  'require',
        'cate_sort'  =>  'require|number|between:1,9999',
    ];


    //提示信息
    protected $message = [
        'cate_name.require'  => '请输入栏目名称',
        'cate_sort.require'  => '请输入排序',
        'cate_sort.number'  => '排序必须为数值',
        'cate_sort.between'  => '排序需要在1-9999之间',
    ];

}
